package com.ease.framework.gef4p.figures.impl {
   import com.ease.framework.gef4p.figures.impl.edge.EdgeFigure;

   public class PolylineEdgeFigure extends EdgeFigure {
      public function PolylineEdgeFigure() {
         super();
      }

//	override protected function draw():void{
//	       if(name != "templateLine"){
//	        calculateCoordinate();
//	      } 
//	  	  graphics.clear();
//	  	  
//	  	  if(_sourceBend!=null){
//	  	  	
//			
//			_sourceBend.setPoint(getX1(),getY1());
//	  	  	_targetBend.setPoint(getX2(),getY2());
//			
//			var point_1:Point = new Point(getX1(),getY1());
//			var point_2:Point = new Point(getX2(),getY2());
//			
//			var points:Array = new Array();
//			points.push(point_1);
//			
//			switch(locationOfSourceActivity){
//					case SOURCEBOX_LOCATION_LEFT_TOP:			
//					case SOURCEBOX_LOCATION_LEFT: 				
//					case SOURCEBOX_LOCATION_LEFT_BOTTOM:		
//					case SOURCEBOX_LOCATION_RIGHT_TOP:			
//					case SOURCEBOX_LOCATION_RIGHT:				
//					case SOURCEBOX_LOCATION_RIGHT_BOTTOM:		
//									var x3:int = (x1+x2)/2;
//									var y3:int = y1;
//									
//									var x4:int = (x1+x2)/2;
//									var y4:int = y2;
//									
//									var point_3:Point = new Point(x3,y3); 
//									var point_4:Point = new Point(x4,y4); 
//									
//									
//									
//									points.push(point_3);
//									points.push(point_4);
//									break;
//					case SOURCEBOX_LOCATION_TOP:				
//					case SOURCEBOX_LOCATION_BOTTOM:				
//									var x3:int = x1;
//									var y3:int = (y1+y2)/2;
//									
//									var x4:int = x2;
//									var y4:int = (y1+y2)/2;
//									
//									var point_3:Point = new Point(x3,y3); 
//									var point_4:Point = new Point(x4,y4); 
//	
//									points.push(point_3);
//									points.push(point_4);
//									break;						
//			}
//
//			points.push(point_2);
//			
//			//var polyLine:PolylineStype = new PolylineStype();
//			graphics.clear();
//			PolylineStype.draw(graphics,points,this.currentColor,this.currentWidth);
//			
//			var tmp_x:int = 0;
//			var tmp_y:int = 0;
//			switch(locationOfSourceActivity){
//					case SOURCEBOX_LOCATION_LEFT_TOP:			tmp_x = x2-1;tmp_y=y2; break;
//					case SOURCEBOX_LOCATION_LEFT: 				tmp_x = x2-1;tmp_y=y2;break;
//					case SOURCEBOX_LOCATION_LEFT_BOTTOM:		tmp_x = x2-1;tmp_y=y2;break;
//					case SOURCEBOX_LOCATION_TOP:				tmp_x = x2;tmp_y=y2-1;break;
//					case SOURCEBOX_LOCATION_BOTTOM:				tmp_x = x2;tmp_y=y2+2;break;
//					case SOURCEBOX_LOCATION_RIGHT_TOP:			tmp_x = x2+1;tmp_y=y2;break;
//					case SOURCEBOX_LOCATION_RIGHT:				tmp_x = x2+1;tmp_y=y2;break;
//					case SOURCEBOX_LOCATION_RIGHT_BOTTOM:		tmp_x = x2+1;tmp_y=y2;break;			
//			}
//			
//			targetArrow.setSourcePoint(tmp_x,tmp_y);
//			
//			//=================================
//		      
//	     }else{
//			
//			var points:Array = new Array();
//			var point_1:Point = new Point(getX1(),getY1());
//			var point_2:Point = new Point(getX2(),getY2());	
//			points.push(point_1);
//									var x3:int = (x1+x2)/2;
//									var y3:int = y1;
//									
//									var x4:int = (x1+x2)/2;
//									var y4:int = y2;
//									
//									var point_3:Point = new Point(x3,y3); 
//									var point_4:Point = new Point(x4,y4); 
//									
//									
//									
//									points.push(point_3);
//									points.push(point_4);
//
//				points.push(point_4);
//				//var polyLine:PolylineStype = new PolylineStype();
//				graphics.clear();
//				PolylineStype.draw(graphics,points,this.currentColor,this.currentWidth);
//
///* 		  	  graphics.lineStyle(1,0x000000,4.0);
//		  	  graphics.moveTo(getX1(),getY1());
//		  	  graphics.lineTo(getX2(),getY2());    
//		  	  graphics.endFill();  */
//		  	  
//		  	  targetArrow.setSourcePoint(getX1(),getY1());
//	     }
//	
//	  	  targetArrow.invalidateDisplayList();
//	 	  
//	    }
//	    
//	    override public function createTempBends():void{
//	    }

   }
}